import request from '@/utils/request'

//
export function reqTrafficList(query) {
  return request({
    url: '/manager/traffic/index',
    method: 'get',
    params: query
  })
}
//结单审核
export function reqTrafficPayStatus(data) {
  return request({
    url: '/manager/api/getTrafficPayStatus',
    method: 'get',
    params: data
  })
}

//信息审核
export function reqTrafficInfoStatus(data) {
  return request({
    url: '/manager/api/getTrafficInfoStatus',
    method: 'get',
    params: data
  })
}
//导出
export function reqIndexExport(data) {
  return request({
    url: '/manager/traffic/indexExport',
    method: 'post',
    data: data,
  })
}

//获取流量主账号信息

export function reqAccountCheckInfo(data) {
  return request({
    url: '/manager/traffic/accountCheckInfo',
    method: 'post',
    data: data,
  })
}

//信息审核通过
export function reqAccountCheckPassData(query) {
  return request({
    url: '/manager/traffic/accountCheckPassData',
    method: 'post',
    data: query
  })
}
//信息审核驳回
export function reqAccountCheckNotPassData(query) {
  return request({
    url: '/manager/traffic/accountCheckNotPassData',
    method: 'post',
    data: query
  })
}

//结算单信息列表
export function reqPayDataInfoList(query) {
  return request({
    url: '/manager/traffic/payDataInfo',
    method: 'get',
    params: query
  })
}
//获取流量主广告位
export function reqTrafficPosition(query) {
  return request({
    url: '/manager/api/getTrafficPosition',
    method: 'get',
    params: query
  })
}


//结算单审核通过
export function reqPayDataCheckPass(query) {
  return request({
    url: '/manager/traffic/payDataCheckPass',
    method: 'post',
    data: query
  })
}
//结算单审核驳回
export function reqPayDataCheckNotPass(query) {
  return request({
    url: '/manager/traffic/payDataCheckNotPass',
    method: 'post',
    data: query
  })
}

//结单信息回显
export function reqPayDataById(id) {
  return request({
    url: '/manager/traffic/payData?id='+id,
    method: 'get',
  })
}


export function reqTrafficPayType() {
  return request({
    url: '/manager/api/getTrafficPayType',
    method: 'get',
  })
}
//提交结单
export function reqPayCheck(data) {
  return request({
    url: '/manager/traffic/payCheck',
    method: 'post',
    data:data,
  })
}
//历史
export function reqPayCheckIndex(data) {
  return request({
    url: '/manager/traffic/payCheckIndex',
    method: 'post',
    data:data,
  })
}


export function reqPayCheckIndexExport(data) {
  return request({
    url: '/manager/traffic/payCheckIndexExport',
    method: 'post',
    data:data,
  })
}


//下载结算单

export function reqPayDataInfoExport(data) {
  return request({
    url: '/manager/traffic/payDataInfoExport',
    method: 'post',
    data:data,
  })
}
